package com.ytc.content.service;

import com.ytc.commons.model.dto.BindTeachplanMediaDto;
import com.ytc.commons.model.dto.TeachplanDto;
import com.ytc.commons.model.vo.ResponseResult;
import com.ytc.commons.model.vo.TeachplanVo;
import com.ytc.content.domain.Teachplan;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 课程计划 服务类
 * </p>
 *
 * @since 2023-04-01
 */
public interface TeachplanService extends IService<Teachplan> {

///根据课程id查询课程的章节
    ResponseResult<TeachplanVo> treeNodes(Long courseId);

    //保存或者更新课程章节
    void saveOrUpdateTeachplan(TeachplanDto dto);

    //删除章节
    ResponseResult deleteTeachplan(Long id);
    //课程计划绑定视频
    ResponseResult associationMedia(BindTeachplanMediaDto dto);

    //解除视频与课程计划的绑定
    ResponseResult teachPlanMediaId(Long teachPlanMediaId, Long courseBaseId);
}
